package ru.dirty.android;

import android.text.Html;
import android.text.SpannableString;

public class ImageAndText {
    private String imageUrl;
    private String text;
    private String htmlText;
    private boolean starsFlag;
    private String autor;
    private String comments;
    private SpannableString headerContent;
    private String rating;
    private int postID;
 
    public ImageAndText(String imageUrl, SpannableString headerContent, String htmlText, String autor,
    						String comments, String rating, boolean starsFlag, int postID) {
        this.imageUrl = imageUrl;
        this.htmlText = htmlText;
        this.text = Html.fromHtml(htmlText).toString();
        this.starsFlag = starsFlag;
        this.autor = autor;
        this.comments = comments;
        this.headerContent = headerContent;
        this.rating = rating;
        this.postID=postID;
    }
    public String getImageUrl() {
        return imageUrl;
    }
    public String getText() {
        return text;
    }
    public String getHtmlText() {
        return htmlText;
    }
    public boolean getStarsFlag() {
        return starsFlag;
    }
    public String getAutor() {
        return autor;
    }
    
    public String getComments() {
        return comments;
    }
    
    public SpannableString getHeader() {
        return headerContent;
    }
    
    public String getRating() {
        return rating;
    }
    
	public int getPostID()
	{
		return postID;
	}
}